<template>
   <!-- 加载图标样式7 -->
   <div class="loading">
      <div></div>
      <div></div>
      <div></div>
      <div></div>
      <div></div>
   </div>
</template>

<script setup>

</script>

<style scoped lang='scss'>
.loading>div,
.loading {
   box-sizing: border-box;
   position: relative
}

.loading {
   display: block;
   font-size: 0;
   height: 16px;
   width: 16px
}

.loading>div {
   animation: ball-circus-position 2.5s cubic-bezier(.25, 0, .75, 1) infinite, ball-circus-size 2.5s cubic-bezier(.25, 0, .75, 1) infinite;
   border-radius: 100%;
   display: block;
   float: none;
   height: 16px;
   height: 100%;
   left: -100%;
   opacity: .5;
   position: absolute;
   top: 0;
   width: 16px;
   width: 100%
}

.loading>div:first-child {
   animation-delay: 0s, -.5s;
   background-color: #ea4e3d
}

.loading>div:nth-child(2) {
   animation-delay: -.5s, -1s;
   background-color: #ea4e3d
}

.loading>div:nth-child(3) {
   animation-delay: -1s, -1.5s;
   background-color: #ffaa09
}

.loading>div:nth-child(4) {
   animation-delay: -1.5s, -2s;
   background-color: #04be02
}

.loading>div:nth-child(5) {
   animation-delay: -2s, -2.5s;
   background-color: #1678ff
}

@keyframes ball-circus-position {
   50% {
      left: 100%
   }
}

@keyframes ball-circus-size {
   50% {
      transform: scale(.3)
   }
}
</style>
